import cn.hutool.system.SystemUtil;
import com.fengwei.util.GsonUtil;

/**
 * Copyright (C), 2020, JieYi Software System Co., Ltd.
 * All rights reserved.
 * FileName:       UserInfo.java
 *
 * @Description:
 * @author: feiwe
 * Modification History:
 * Date         Author        Version        Discription
 * -------------------------------------------------------
 * 2020/12/28      feiwe                         add
 */


public class UserInfo {
    public static void main(String[] args) {
        cn.hutool.system.UserInfo userInfo = SystemUtil.getUserInfo();
        System.out.println(GsonUtil.toJson(userInfo, false));
        System.out.println(userInfo.getHomeDir());

    }
}
